package com.heima.model.user.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

@Data
public class UserExcel implements Serializable {
    @ExcelProperty("手机号")
    private String phone;
    @ExcelProperty("用户名称")
    private String name;
    @ExcelProperty("用户年龄")
    private Integer age;
    @ExcelProperty("用户性别")
    private String sex;
    @ExcelProperty("盐")
    private String salt;
    @ExcelProperty("用户密码")
    private String password;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserExcel userExcel = (UserExcel) o;
        return Objects.equals(phone, userExcel.phone);
    }

    @Override
    public int hashCode() {
        return Objects.hash(phone);
    }
}